export module DoubaoForm;
import std;
import IIS_push_str;
import "IIS_push_str.hpp";
import <boost/json.hpp>;

GetMapper("/doubaoform") {
	std::cout << "GetMapper /doubaoform" << std::endl;
	std::ifstream ifs("web/DoubaoForm.html", std::ios::binary);
	if (ifs.is_open() == false) {
		throw std::runtime_error("Not Find File");
	}
	std::ostringstream oss;
	oss << ifs.rdbuf();
	return oss.str();
}

PostMapper("/doubaoform/post1") {
	std::cout << req_body << std::endl;

	return req_body;
}